import {
  UserInfoType,
  areaInfoType,
  cinemaInfoType,
  sharePosterInfoType,
  posterInfo
} from '@/@type'
import LocStore from './index'
const TOKEN = 'TOKEN' //token
const ACCCOUNT = 'ACCOUNT' //渠道账号
const PASSWORD = 'PASSWORD' //渠道密码
const USER_INFO = 'USER_INFO'
const BASE_DATA = 'BASE_DATA' //数据字典
const BASE_SET = 'BASE_SET' //基础配置信息
const TABBAR_DATA = 'TABBAR_DATA' //底部菜单栏信息
const AREA_INFO = 'AREA_INFO' //选中的定位信息
const LOC_AREA_INFO = 'LOC_AREA_INFO' //当前定位信息
const CINEMA_INFO = 'CINEMA_INFO' //当前选择影院信息
const URL_QUERY = 'URL_QUERY' // 存储 的url 参数
const PRE_ORDER_INFO = 'PRE_ORDER_INFO' //预付订单信息
const CHECK_CART = 'CHECK_CART'
const SHARE_QUERY = 'SHARE_QUERY' // 分享链接参数
const COUPON_DATA = 'COUPON_DATA' // 选中的券
const CARD_DATA = 'CARD_DATA' // 选中的卡
const GOODS_COUPON_DATA = 'GOODS_COUPON_DATA' // 选中的套票券
const MALL_COUPON_DATA = 'MALL_COUPON_DATA' // 选中的点餐券
const MALL_DATA = 'MALL_DATA' // 点餐数据
const SHARE_POSTER_INFO = 'SHARE_POSTER_INFO' // 选中的券
const HAS_SHOW_MODEL = 'HAS_SHOW_MODEL' // 是否弹出地区不同提示框
// const LOC_IS_AUTH = 'LOC_IS_AUTH' // 是否授权过
// const LOC_AGAIN_AUTH = 'LOC_AGAIN_AUTH' //是否再次授权
const WX_READY = 'WX_READY'
const SHARE_PATH = 'SHARE_PATH'
const URL_TOKEN = 'URL_TOKEN'
const CHOOSET_FILM_NAME = 'CHOOSET_FILM_NAME' // 选择座位图标题
const ACTIVITY_PRIZE = 'ACTIVITY_PRIZE' // 注册礼物
const POSTER_INFO = 'POSTER_INFO' // 生成海报时的传参
const GLOBAL_DIALOG = 'GLOBAL_DIALOG' // 全局弹框
export const locToken = new LocStore<string>(TOKEN, '')
export const locUrlToken = new LocStore<string>(URL_TOKEN, '')
export const locAccount = new LocStore<string>(ACCCOUNT, '')
export const locPassword = new LocStore<string>(PASSWORD, '')
export const locUserInfo = new LocStore<UserInfoType>(USER_INFO, {})
export const locBaseData = new LocStore(BASE_DATA, {})
export const locBaseSet = new LocStore(BASE_SET, {})
export const locTabbarData = new LocStore(TABBAR_DATA, {})
export const locTimeAreaInfo = new LocStore<areaInfoType>(AREA_INFO, {})
export const locAreaInfo = new LocStore<areaInfoType>(LOC_AREA_INFO, {})
export const cinemaInfo = new LocStore<cinemaInfoType>(CINEMA_INFO, {})
export const locSaveUrlQuery = new LocStore(URL_QUERY, {})
export const locPreOrderInfo = new LocStore(PRE_ORDER_INFO, {})
export const locCheckCard = new LocStore(CHECK_CART, {})
export const locShare = new LocStore(SHARE_QUERY, {})
export const locSelCoupon = new LocStore(COUPON_DATA, {})
export const locSelCard = new LocStore(CARD_DATA, null)
export const locSelGoodsCoupon = new LocStore(GOODS_COUPON_DATA, {})
export const locSelmallCoupon = new LocStore(MALL_COUPON_DATA, {})
export const locSelmallData = new LocStore(MALL_DATA, {})
export const locHasShowModel = new LocStore(HAS_SHOW_MODEL, false)
export const locSharePosterInfo = new LocStore<sharePosterInfoType>(
  SHARE_POSTER_INFO,
  {}
)
export const locPosterInfo = new LocStore<posterInfo>(POSTER_INFO, {})

// export const locIsAuth = new LocStore<string>(LOC_IS_AUTH, '')
// export const locAgainAuth = new LocStore<string>(LOC_AGAIN_AUTH, '')
export const locWxReady = new LocStore<string>(WX_READY, '')
export const locSharePath = new LocStore<string>(SHARE_PATH, '')
export const locChoosetfilmName = new LocStore<string>(CHOOSET_FILM_NAME, '')
export const locActivityPrize = new LocStore<Array<any>>(ACTIVITY_PRIZE, [])
export const locGlobalDialog = new LocStore<string>(GLOBAL_DIALOG, '')
